87f78fb51777cb6cd04710d676487cd7599b49aa,modules/schema-import/src/main/java/org/apache/ignite/schema/generator/CodeGenerator.java,CodeGenerator,snippet,#Collection#String#boolean#String#ConfirmCallable#,569
Before Change
}
add2(src, "qryEntity.setIndexes(idxs);");
add0(src, "");
}
add2(src, "return qryEntity;");
After Change
}
// Only if all fields present, add index description.
if (idxFlds.size() == sz) {
if (first) {
add2(src, "// Indexes for " + tbl + ".");
add2(src, "Collection<QueryIndex> idxs = new ArrayList<>();");
add0(src, "");
}
if (sz == 1) {
T2<String, Boolean> idxFld = idxFlds.get(0);
add2(src, "idxs.add(new QueryIndex(\"" + idxFld.getKey() + "\", " + idxFld.getValue() + ", \"" +
idx.getName() + "\"));");
add0(src, "");
}
else {
add2(src, (firstIdx ? "QueryIndex " : "") + "idx = new QueryIndex();");